local anming = fk.CreateSkill{
  name = "iberia__anming",
}

Fk:loadTranslationTable{
  [anming.name] = "安命",
  [":"..anming.name] = "当你的判定牌生效后，你获得之，本回合你的手牌上限+1。",
}

anming:addEffect(fk.FinishJudge, {
  can_trigger = function (self, event, target, player, data)
    return target == player and player:hasSkill(anming.name) and data.card
    and player.room:getCardArea(data.card) == Card.Processing
  end,
  on_cost = function (self, event, target, player, data)
    return true
  end,
  on_use = function (self, event, target, player, data)
    player.room:obtainCard(player, data.card, true, fk.ReasonJustMove, player, anming.name)
    player.room:addPlayerMark(player, MarkEnum.AddMaxCardsInTurn, 1)
  end
})

return anming